package com.winning.sjzc.login.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.winning.sjzc.login.dao.SysCzryMapper;
import com.winning.sjzc.login.entity.SysCzryEntity;
import com.winning.sjzc.login.service.SysCzryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * description:
 *
 * @author yanxf@winning.com.cn
 * @date 2019/08/13 17:50
 */
@Service
public class SysCzryServiceImpl implements SysCzryService {

  @Autowired
  private SysCzryMapper sysCzryMapper;

  @Override
  public SysCzryEntity queryByUserName(String username) {
    return sysCzryMapper
        .selectOne(new LambdaQueryWrapper<SysCzryEntity>().eq(SysCzryEntity::getDldm, username));
  }
}
